var mysql = require('mysql');
var config = {};
// 开发环境
if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === undefined) {
    config.mysqlPool = mysql.createPool({
        connectionLimit: 100, //important
        host: 'localhost',
        user: 'root',
        password: '',
        database: 'mkfree_blog',
        debug: false
    });
}

// 生产环境
if (process.env.NODE_ENV === 'production') {
    config.mysqlPool = mysql.createPool({
        connectionLimit: 100, //important
        host: 'localhost',
        user: 'root',
        password: '',
        database: 'mkfree_blog',
        debug: false
    });
}

module.exports = config;